package com.pine.manager.pineframework.query;

import com.pine.dao.pineframework.constants.ApprovalStatusEnum;
import com.pine.manager.core.BaseQuery;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 系统审批历史表查询对象
 * </p>
 *
 * @author pine manage
 * @since 2024-10-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysApprovalHistoryQuery extends BaseQuery<Long> {
    @Serial
    private static final long serialVersionUID = 6104703329028808459L;

    /**
     * 审批ID
     */
    private String approvalId;

    /**
     * 申请名称
     */
    private String name;

    /**
     * 申请状态:0=待提交,1=待审批,2=已审批,3=已拒绝,4=已完成,5=已取消
     */
    private List<ApprovalStatusEnum> status;

    /**
     * 创建人ID
     */
    private Long createUserId;

    /**
     * 创建人名称
     */
    private String createUsername;

    /**
     * 操作人ID
     */
    private Long actionUserId;

    /**
     * 操作人名称
     */
    private String actionUsername;

    /**
     * 操作时间-起始
     */
    private LocalDateTime actionTimeStart;

    /**
     * 操作时间-截止
     */
    private LocalDateTime actionTimeEnd;

    /**
     * 备注
     */
    private String remark;

    /**
     * 逻辑删除(0-未删除 1-已删除)
     */
    private Integer deleted;
}
